package com.pig4cloud.pigx.knowledge.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pigx.common.data.datascope.PigxBaseMapper;
import com.pig4cloud.pigx.knowledge.entity.AiDocumentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AiDocumentMapper extends PigxBaseMapper<AiDocumentEntity> {

	/**
	 * 获取文档页面
	 * @param page 页
	 * @param aiDocument AI 文档
	 * @return {@link Page }<{@link AiDocumentEntity }>
	 */
	Page<AiDocumentEntity> getDocumentPage(Page<AiDocumentEntity> page, @Param("query") AiDocumentEntity aiDocument);

}
